/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.perlak.filters;

import com.perlak.filesearch.SingleFileResult;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 *
 * @author mateusz
 */
public class FilteredItem implements IFilteredItem {

    private SingleFileResult fileResult;

    public FilteredItem(final SingleFileResult result) {
        this.fileResult = result;
    }

    @Override
    public SingleFileResult getFilteredItem() {
        return fileResult;
    }

    @Override
    public List<SingleFileResult> getListOfFilteredItems() {
        return Arrays.asList(fileResult);
    }

}
